package descentFly.away3D4.Generator
{
	import UIFree.ObjectEvent;
	
	import away3d.entities.Mesh;
	import away3d.tools.utils.Bounds;
	
	import descentFly.away3D4.df_awaySpace;
	import descentFly.df_utils;
	
	import flash.geom.Vector3D;
	
	public class df_doors extends df_basePoints {
		public function df_doors(a_space:df_awaySpace, a_options:Object) {
			super(a_space, a_options);
		}
		
		override protected function parseMesh(m: Mesh): Object {
			var p: Object = df_utils.matToObject(m.transform);
			Bounds.getMeshBounds(m);
			return {
				position	: p.position,
				orientation : p.orientation,
				box			: new Vector3D(Bounds.width, Bounds.height, Bounds.depth),
				object		: null
			};
		}
	}
}